package de.idgard.android.addon.ui.services;

import java.util.Collection;

import de.idgard.android.addon.services.ContextAware;

/**
 * 
 * @author ckaratza
 * 
 */

public interface PreferenceService extends ContextAware {

	void saveUsername(final String username);

	String getLastSavedUsername();

	void saveOpenTabUrls(final Collection<String> urls);

	Collection<String> getSavedTabUrls();
	
	void saveAddonVisibilityMode(boolean visible);

	boolean getSavedAddonVisibilityMode();

	enum Preferences {

		LAST_USERNAME("Username"), HIDE_IDGARD_BAR("HIDE_IDGARD_BAR"), ON_OR_OFF_IDGARD_BAR(
				"ON_OR_OFF_IDGARD_BAR"), PREFERENCES_BROWSER_USER_AGENT(
				"BrowserUserAgent"), PREFERENCES_TAB_HISTORY_BEFORE_ON_MODE(
				"TabHistoryBeforeOnMode");

		private String value;

		Preferences(String value) {
			this.value = value;
		}

		public String value() {
			return value;
		}
	}
}
